package com.ruoyi.web.utils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.regex.Pattern;

public class LevelUtil {

    public static String GB = "GB";


    public static String getLevelName(Integer level, String type) {
        String levelName="";
        if(GB.equals(type)){
            switch (level) {
                case 0: return levelName="正常";
                case 1: return levelName="轻度失能";
                case 2: return levelName="轻度失能";
                case 3: return levelName="中度失能";
                case 4: return levelName="中度失能";
                case 5: return levelName="重度失能";
                case 6: return levelName="重度失能";
            }
        }else{
            switch (level) {
                case 0: return levelName="基本正常";
                case 1: return levelName="轻度失能";
                case 2: return levelName="中度失能";
                case 3: return levelName="重度失能Ⅰ级";
                case 4: return levelName="重度失能Ⅱ级";
                case 5: return levelName="重度失能Ⅲ级";
            }
        }

        return levelName;
    }


}
